import request from '@/utils/request'
import { Encrypt } from '@/utils/cryptoJS'

/**
 * 风险单元停用相关接口
 */
export function useRiskUnitStopApi() {
    return {
        // 查询风险单元停用列表
        findUnitStop: (data) => {
            const value_Encrypt = Encrypt(JSON.stringify(data))
            return request({
                url: '/hcp-dp/riskUnitStop/findUnitStop',
                method: 'post',
                data: { value: value_Encrypt }
            })
        },

        // 查询风险单元停用详情
        findUnitStopDetails: (data) => {
            const value_Encrypt = Encrypt(JSON.stringify(data))
            return request({
                url: '/hcp-dp/riskUnitStop/findUnitStopDetails',
                method: 'post',
                data: { value: value_Encrypt }
            })
        },

        // 新增风险单元停用
        addUnitStop: (data) => {
            const value_Encrypt = Encrypt(JSON.stringify(data))
            return request({
                url: '/hcp-dp/riskUnitStop/addUnitStop',
                method: 'post',
                data: { value: value_Encrypt }
            })
        },

        // 修改风险单元停用
        updateUnitStop: (data) => {
            const value_Encrypt = Encrypt(JSON.stringify(data))
            return request({
                url: '/hcp-dp/riskUnitStop/updateUnitStop',
                method: 'post',
                data: { value: value_Encrypt }
            })
        }
    }
} 